//
//  KKBarChartView.h
//  KKBarViewDemo
//
//  Created by liaozhenming on 16/3/26.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import <UIKit/UIKit.h>

#pragma mark - KKBarChartView methods

@protocol KKBarChartViewDataSource;
@protocol KKBarChartViewDelegate;

@interface KKBarChartView : UIView

@property (nonatomic, strong) UIScrollView *kk_contentScrollView;

@property (nonatomic, weak) id<KKBarChartViewDataSource> dataSource;
@property (nonatomic, weak) id<KKBarChartViewDelegate> delegate;

//  更新数据
- (void)reloadData;

@end

@protocol KKBarChartViewDataSource <NSObject>
@required

//  横轴上的值array
- (NSArray*)valuesOfLateralAxisInBarChartView:(KKBarChartView *)chartView;
@optional

//  横轴上的值Title
- (NSString *)chartView:(KKBarChartView *)chartView cellTitleAtIndexPath:(NSIndexPath*)indexPath;

- (NSString *)chartView:(KKBarChartView *)chartView lateralAxisTitleAtIndex:(NSInteger)index;

@end


#pragma mark - KKBarChartViewCell methods

@interface KKBarChartViewCell : UIView

- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title;

@end